const fs = require('fs')

async function readFiles() {
  const c = {}
  // await fs.readFile('douban.json', 'utf8', (err, data) => {
  //   return c.c1=data;
  // })
  // const f2=  fs.readFile('douban2.json', (err, data) => {
  //   return c.c2=data;
  // })
  // console.log(f2);
  // return c

  let aa = await new Promise((resolve, reject) => {
    fs.readFile('douban.json', 'utf8', (err, data) => {
      resolve(data);
    })
  })
  
  return JSON.parse(aa);
}

readFiles().then(data => {
  console.log(data.count);
})